Skip to content

Volo be validate token logic added#1

Open
ShyamSagothia wants to merge 3 commits intomasterfrom
volo-be-validate-token-logic-added
Open

Volo be validate token logic added#1
ShyamSagothia wants to merge 3 commits intomasterfrom
volo-be-validate-token-logic-added

Conversation

@ShyamSagothia
Copy link
Copy Markdown

No description provided.

"pydantic",
"fastapi",
"sentry-sdk[fastapi]",
"httpx (>=0.28.1,<0.29.0)",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image its better use with http2 support

"""
# Skip validation in test environments
if env == "test":
return True
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are using this env bro. seems we can skip this function call itself na

if x_feature:
headers["x_feature"] = x_feature

async with httpx.AsyncClient(base_url=volo_be_url, headers=headers) as http:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel it should change base url as well. based on the request u are getting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants